package Demo2;

public class Demo2 implements Runnable{
    char name;
    private int a;
    private int b;
    public Demo2(char name, int a,int b) {
        this.name = name;
        this.a = a;
        this.b = b;
    }
    @Override
    public void run() {
        for(int i = a;i < b;i++) {
            System.out.println(name + "运行中：" + i);
        }
    }
}
